package com.KKd.service;

import com.KKd.pojo.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentService {
    //添加评论
    int addComment(Comment comm);
    //根据id删除评论
    int deleteCommentById(int commId);
    //点赞
    int addCommThumbNum(int commId);
    //取消点赞
    int decCommThumbNum(int commId);
    //评论置顶
    int setCommentFirstById(int commId);
    //返回评论
    List<Comment> queryComments(int blogId);
}
